#include<bits/stdc++.h>
#define N 100005
using namespace std;
int read(){
    int x=0,f=1;
    char ch=getchar();
    while(ch>'9'||ch<'0'){
        if(ch=='-')
            f=-1;
        ch=getchar();
    }
    while(ch>='0'&&ch<='9'){
        x=(x<<3)+(x<<1)+(ch^48);
        ch=getchar();
    }
    return x*f;
}
int n,r[N];
int pt=1;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    // ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    n=read();
    for(int i=1;i<=n;i++)
        r[i]=read();
    sort(r+1,r+n+1);
    for(int i=2;i<=n;i++){
        if(r[i]>r[pt])
            pt++;
    }
    printf("%d\n",n-pt+1);
    return 0;
}